package com.guli.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guli.common.to.SeckillOrderTo;
import com.guli.common.utils.R;
import com.guli.order.entity.OrderEntity;
import com.guli.order.vo.*;
import com.guli.common.utils.PageUtils;

import java.util.Map;

/**
 * 订单
 *
 * @author zzb
 * @email 1626131069@qq.com
 * @date 2023-10-19 15:34:29
 */
public interface OrderService extends IService<OrderEntity> {
    PageUtils queryPage(Map<String, Object> params);
    /**
     * 订单确认页返回需要用的数据
     * @return
     */
    OrderConfirmVo confirmOrder();
    SubmitOrderResponseVo submitOrder(OrderSubmitVo orderSubmitVo);
    R getOrderStatusByOrderSn(String orderSn);
    void closeOrder(OrderEntity orderEntity);
    PayVo getOrderPay(String orderSn);

    PageUtils listWithItem(Map<String, Object> params);

    String handlePayResult(PayAsyncVo payAsyncVo);

    void createSeckillOrder(SeckillOrderTo seckillOrderTo);
}

